﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace NarutoClient.Pages
{
    /// <summary>
    /// Interaction logic for ResultPage.xaml
    /// </summary>
    public partial class ResultPage : UserControl
    {
        MainWindow mainWindow;

        public ResultPage()
        {
            InitializeComponent();
        }

        public ResultPage(MainWindow window, string result)
        {
            InitializeComponent();

            this.mainWindow = window;
            resultTextBlock.Text = result;
        }

        private void newButton_Click(object sender, RoutedEventArgs e)
        {
            mainWindow.Content = new CharacterPage(mainWindow);
        }
    }
}
